from django.db import models
from django.utils import timezone
# Create user models here.


class UserInfo(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=100, unique=True)
    password = models.CharField(max_length=100)
    created_at = models.DateTimeField(default=timezone.now)
    permissions = models.CharField(max_length=50)

    class Meta:
        db_table = 't_user'
        verbose_name = '用户信息'
        verbose_name_plural = verbose_name
        ordering = ['-created_at']

